MongoGridFS
PHP Manual

MongoGridFS::storeUpload

(PECL mongo >=0.9.0)

MongoGridFS::storeUploadSaves an uploaded file to the database

Descripción

public MongoId MongoGridFS::storeUpload ( string $name [, array $extra ] )

Lista de parámetros

name

The name field of the uploaded file.

extra

Other metadata to add to the file saved.

Valores retornados

Returns the id of the uploaded file.


MongoGridFS
PHP Manual